home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / alaskan-adversary.swf / scripts / frame_29 / PlaceObject2_1015_310 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-11  |  7.0 KB  |  196 lines

  1. onClipEvent(enterFrame){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 2807 % 511 * 5;
  5.    }
  6.    var ┬º\x01┬º = -925 + "\x01\x02"();
  7.    while(true)
  8.    {
  9.       if(eval("\x01") == 335)
  10.       {
  11.          set("\x01",eval("\x01") + 469);
  12.          ┬º┬ºpush(true);
  13.       }
  14.       else if(eval("\x01") == 804)
  15.       {
  16.          set("\x01",eval("\x01") + 186);
  17.          if(function ┬º\x01\x02┬º()
  18.          {
  19.             return 2807 % 511 * 5;
  20.          })
  21.          {
  22.             set("\x01",eval("\x01") - 915);
  23.          }
  24.       }
  25.       else if(eval("\x01") == 664)
  26.       {
  27.          set("\x01",eval("\x01") - 517);
  28.          ┬º┬ºpush("\x0f");
  29.          ┬º┬ºpush(1);
  30.       }
  31.       else if(eval("\x01") == 75)
  32.       {
  33.          set("\x01",eval("\x01") + 589);
  34.       }
  35.       else if(eval("\x01") == 23)
  36.       {
  37.          set("\x01",eval("\x01") + 286);
  38.          ┬º┬ºpush("\x0f");
  39.       }
  40.       else if(eval("\x01") == 147)
  41.       {
  42.          set("\x01",eval("\x01") - 124);
  43.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  44.          {
  45.             return 2807 % 511 * 5;
  46.          };
  47.       }
  48.       else if(eval("\x01") == 416)
  49.       {
  50.          set("\x01",eval("\x01") - 66);
  51.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  52.          {
  53.             return 2807 % 511 * 5;
  54.          });
  55.       }
  56.       else if(eval("\x01") == 309)
  57.       {
  58.          set("\x01",eval("\x01") + 107);
  59.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  60.          {
  61.             return 2807 % 511 * 5;
  62.          }));
  63.       }
  64.       else if(eval("\x01") == 288)
  65.       {
  66.          set("\x01",eval("\x01") + 376);
  67.       }
  68.       else
  69.       {
  70.          if(eval("\x01") == 990)
  71.          {
  72.             set("\x01",eval("\x01") - 915);
  73.             break;
  74.          }
  75.          if(eval("\x01") == 350)
  76.          {
  77.             set("\x01",eval("\x01") - 61);
  78.             if(function ┬º\x01\x02┬º()
  79.             {
  80.                return 2807 % 511 * 5;
  81.             })
  82.             {
  83.                set("\x01",eval("\x01") - 252);
  84.             }
  85.          }
  86.          else
  87.          {
  88.             if(eval("\x01") != 289)
  89.             {
  90.                if(eval("\x01") == 37)
  91.                {
  92.                   set("\x01",eval("\x01") + 780);
  93.                   if(_root.paus3)
  94.                   {
  95.                      speed = 0;
  96.                      maxspeed = 0;
  97.                   }
  98.                   if(!_root.paus3)
  99.                   {
  100.                      if(this.hitTest(_root.camera))
  101.                      {
  102.                         speed = 0;
  103.                         maxspeed = 10;
  104.                         damage = 0;
  105.                         grav++;
  106.                         _Y = _Y + grav;
  107.                         while(_root.ground.hitTest(_X,_Y,true))
  108.                         {
  109.                            _Y--;
  110.                            grav = 0;
  111.                         }
  112.                         if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  113.                         {
  114.                            _X = _X - speed;
  115.                         }
  116.                         if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
  117.                         {
  118.                            _X = _X + speed;
  119.                         }
  120.                         if(_root.ground.hitTest(_X,_Y - _height - 15,true))
  121.                         {
  122.                            grav = 1;
  123.                         }
  124.                         moving = 0;
  125.                         above = 0;
  126.                         if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  127.                         {
  128.                            this._x += movespeed;
  129.                            _xscale = scale;
  130.                            this.gotoAndStop("run");
  131.                            attack = 0;
  132.                            moving = 1;
  133.                         }
  134.                         else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  135.                         {
  136.                            this._x -= movespeed;
  137.                            _xscale = - scale;
  138.                            this.gotoAndStop("run");
  139.                            attack = 0;
  140.                            moving = 1;
  141.                         }
  142.                         if(_root.char._currentframe == 45)
  143.                         {
  144.                            this.gotoAndStop("idle");
  145.                            moving = 0;
  146.                         }
  147.                         if(!moving && this._currentframe != 5)
  148.                         {
  149.                            moving = 0;
  150.                         }
  151.                         if(this._currentframe == 35)
  152.                         {
  153.                            this._x += movespeed;
  154.                         }
  155.                         jumpHits = 9;
  156.                         i = 1;
  157.                         while(i <= jumpHits)
  158.                         {
  159.                            jumpHit = _root.ground["jumpHit" + i];
  160.                            if(this.hitTest(jumpHit) && moving == 1)
  161.                            {
  162.                               grav = - jumpHeight;
  163.                               _Y = _Y - 4;
  164.                               moving = 0;
  165.                            }
  166.                            i++;
  167.                         }
  168.                         attack = 0;
  169.                         jumping = 0;
  170.                         if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
  171.                         {
  172.                            if(this._currentframe != 10 && this._currentframe != 15)
  173.                            {
  174.                               attack1();
  175.                            }
  176.                            if(this._currentframe != 10 && this._currentframe != 15)
  177.                            {
  178.                               attack = 0;
  179.                            }
  180.                         }
  181.                      }
  182.                   }
  183.                   break;
  184.                }
  185.                if(eval("\x01") == 817)
  186.                {
  187.                   set("\x01",eval("\x01") - 817);
  188.                }
  189.                break;
  190.             }
  191.             set("\x01",eval("\x01") - 252);
  192.          }
  193.       }
  194.    }
  195. }
  196.